from flask import Flask
from .routes.rankings import rankings_bp
from .routes.recommend import recommend_bp
def create_app():
    app = Flask(__name__)

    # 注册蓝图
    app.register_blueprint(rankings_bp, url_prefix='/api')
    app.register_blueprint(recommend_bp, url_prefix='/api')
    return app